package cn.xd.base.application.assembler;

import cn.xd.base.domain.bean.response.KeyValueDTO;
import cn.xd.base.domain.entity.KeyValue;
import cn.xd.base.persistence.dos.KeyValueDO;
import cn.xd.core.converter.Converter;
import cn.xd.core.converter.ReferenceMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author : mirzaLin
 * @data : 2023/11/20
 * @description :
 **/
@Mapper(uses = ReferenceMapper.class)
public interface KeyValueAssembler extends Converter<KeyValueDTO, KeyValueDO> {

    KeyValueAssembler INSTANCE = Mappers.getMapper(KeyValueAssembler.class);

    KeyValueDTO toDto(KeyValue keyValue);
}
